import request from '@/utils/request'

export function getSymbolList(query) {
  return request({
    url: '/knowledge/symbol/getList',
    method: 'post',
    data: query
  })
}

export function getSymbolUsableList(query){
    return request({
      url: '/knowledge/symbol/getUsableList',
      method: 'post',
      data: query
    })
}

export function getSymbolDetail(id) {
  return request({
    url: '/knowledge/symbol/getDetail',
    method: 'post',
    data: id
  })
}

export function saveSymbol(formdata) {
  return request({
    url: '/knowledge/symbol/save',
    method: 'post',
    data: formdata
  })
}
export function changeStatusBySymbolID(id) {
  return request({
    url: '/knowledge/symbol/change-status',
    method: 'post',
    data: id
  })
}

export function removeSymbolByID(id) {
  return request({
    url: '/knowledge/symbol/remove',
    method: 'post',
    data: id
  })
}

export function deleteSymbolByID(id) {
  return request({
    url: '/knowledge/symbol/delete',
    method: 'post',
    data: id
  })
}

